import request from '@/utils/request'

// 查询应知应会列表
export function listStudymeeting(query) {
  return request({
    url: '/studymeeting/studymeeting/list',
    method: 'get',
    params: query
  })
}

// 查询应知应会详细
export function getStudymeeting(id) {
  return request({
    url: '/studymeeting/studymeeting/' + id,
    method: 'get'
  })
}

// 新增应知应会
export function addStudymeeting(data) {
  return request({
    url: '/studymeeting/studymeeting',
    method: 'post',
    data: data
  })
}

// 修改应知应会
export function updateStudymeeting(data) {
  return request({
    url: '/studymeeting/studymeeting',
    method: 'put',
    data: data
  })
}

// 删除应知应会
export function delStudymeeting(id) {
  return request({
    url: '/studymeeting/studymeeting/' + id,
    method: 'delete'
  })
}
